#include <stdio.h>
#include <stdlib.h>
#include "double_link_list.h"

int main(){
	//创建空链表
	LIST *list = list_create();
	//尾部插入节点
	list_append(list,10);
	list_append(list,30);
	list_append(list,60);
	//遍历打印
	list_prev_print(list);
	list_insert(list,0,20);
	list_insert(list,2,40);
	list_insert(list,3,50);
	list_insert(list,5,70);
	list_next_print(list);
	list_erase(list,1);
	list_erase(list,4);
	list_next_print(list);
	return 0;
	}
